package com.silence.springboot.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import com.silence.springboot.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 用户角色关联表 实体类。
 *
 * @author mybatis-flex-helper automatic generation
 * @since 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Schema(name = "用户角色关联表")
@Table(value = "user_role")
@EqualsAndHashCode(callSuper = false)
public class UserRoleEntity extends BaseEntity {

    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
    @Column(value = "user_id")
    private Long userId;

    /**
     * 角色ID
     */
    @Schema(description = "角色ID")
    @Column(value = "role_id")
    private Long roleId;

}
